<?php
/**
 * Created By virus_cms
 * Desc: 退出
 * Author: Virus
 * Date: 2020/2/29
 * Time: 12:16
 */

namespace app\admin\controller;



class Logout extends AdminBase
{
    public function index()
    {
        // 清除session
        session('session_admin', null);

        // 执行跳转
        return redirect(url('login/index'));
    }
}